package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WarehouseStoreMapper;
import com.ruoyi.system.domain.WarehouseStore;
import com.ruoyi.system.service.IWarehouseStoreService;

/**
 * 仓库店铺关联信息Service业务层处理
 * 
 * @author zhl
 * @date 2024-05-08
 */
@Service
public class WarehouseStoreServiceImpl implements IWarehouseStoreService 
{
    @Autowired
    private WarehouseStoreMapper warehouseStoreMapper;

    /**
     * 查询仓库店铺关联信息
     * 
     * @param warehouseStoreId 仓库店铺关联信息主键
     * @return 仓库店铺关联信息
     */
    @Override
    public WarehouseStore selectWarehouseStoreByWarehouseStoreId(Long warehouseStoreId)
    {
        return warehouseStoreMapper.selectWarehouseStoreByWarehouseStoreId(warehouseStoreId);
    }

    /**
     * 查询仓库店铺关联信息列表
     * 
     * @param warehouseStore 仓库店铺关联信息
     * @return 仓库店铺关联信息
     */
    @Override
    public List<WarehouseStore> selectWarehouseStoreList(WarehouseStore warehouseStore)
    {
        return warehouseStoreMapper.selectWarehouseStoreList(warehouseStore);
    }

    /**
     * 新增仓库店铺关联信息
     * 
     * @param warehouseStore 仓库店铺关联信息
     * @return 结果
     */
    @Override
    public int insertWarehouseStore(WarehouseStore warehouseStore)
    {
        return warehouseStoreMapper.insertWarehouseStore(warehouseStore);
    }

    /**
     * 修改仓库店铺关联信息
     * 
     * @param warehouseStore 仓库店铺关联信息
     * @return 结果
     */
    @Override
    public int updateWarehouseStore(WarehouseStore warehouseStore)
    {
        return warehouseStoreMapper.updateWarehouseStore(warehouseStore);
    }

    /**
     * 批量删除仓库店铺关联信息
     * 
     * @param warehouseStoreIds 需要删除的仓库店铺关联信息主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseStoreByWarehouseStoreIds(Long[] warehouseStoreIds)
    {
        return warehouseStoreMapper.deleteWarehouseStoreByWarehouseStoreIds(warehouseStoreIds);
    }

    /**
     * 删除仓库店铺关联信息信息
     * 
     * @param warehouseStoreId 仓库店铺关联信息主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseStoreByWarehouseStoreId(Long warehouseStoreId)
    {
        return warehouseStoreMapper.deleteWarehouseStoreByWarehouseStoreId(warehouseStoreId);
    }
}
